package com.zjj.learn.designmodel.work.composite;

public class File implements FileSystemComponent{

    private String name;

    public File(String name) {
        this.name = name;
    }

    @Override
    public void display() {
        System.out.println(this.name + " 文件");
    }
}
